package com.hqyj.ctxp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hqyj.ctxp.pojo.UserInfo;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    //展示个人信息
    @Select("select * from user_info where user_name = #{userName}")
    UserInfo selectUserInfo(String userName);

    @Select("select * from user_info where user_no = #{userNo}")
    UserInfo selectUserById(Integer userNo);

}
